<?php
use App\Http\Tools as Tools;

?>
<!--    继承layouts/thr_master.php模板  -->
@extends('layouts.thr_master')


<!-- 重写内容  -->
@section('content')
<div class="col-lg-3"></div>
<div class="col-lg-6">
<h3 align="center">修改项目</h3>
<div align="center">
	<form action="/thr/modify_pro/{{$data->pid}}" method="POST">
		<table border="1">
		<tr>
			<th>项目名称</th>
			<td><input type="text" name="pname" placeholder="项目名称" value="{{$data->pname}}"></td>
		</tr>
		<tr>
			<th>资助类别</th>
			<td>
				{{Tools::getSupportType($data->support_type)}}
			</td>
		</tr>
		<tr>
			<th>所属学院</th>
			<td>
				 {{Tools::getCollege($data->college)}}
			</td>
		</tr>
		<tr>
			<th>项目年份</th>
			<td>
				{{$data->year}}
			</td>
		</tr>
		<tr>
			<th>项目来源</th>
			<td><input type="text" name="source" placeholder="项目来源" value="{{$data->source}}"></td>
		</tr>
		<tr>
			<th>开始时间</th>
			<td><input type="date" name="start"  ></td>
		</tr>
		<tr>
			<th>结题时间</th>
			<td><input type="date" name="end" ></td>
		</tr>
		<tr>
			<th>项目费用</th>
			<td><input type="text" name="fees" placeholder="费用" value="{{$data->fees}}" ></td>
		</tr>
		<tr>
			<th>项目详细信息</th>
			<td>
				<textarea rows="10" cols="100" name="details" placeholder="请填写项目详情" >{{$data->details}}</textarea>
			</td>
		</tr>
	</table><br>

	<button type="submit" name="submit">修改</button>
	</form>
	
</div>
</div>

@endsection